class_name 野马Operation extends Node

var operationManager = null
var big:Big			#要出大的大子

func init(om:OperationManager):
	self.operationManager = om
	return self

# 移动，周围point开启监听 
func preparation_野马_impact():
	operationManager.arr_listeningPoints.clear()
	var point = operationManager.selectedPoint
	var arrAroundPoints = GameUtils.getArrPointsAround2(point)
	for p in arrAroundPoints:
		if p.is_view:
			if Terrain.jing == p.real_terrain:
				continue
			if p.small != null && p.small.player.is_me:
				continue
			if p.big != null:		#有大子
				if p.big.player.is_me:	#是自己的
					continue
		operationManager.arr_listeningPoints.append(p)
	GameUtils.neatAnimation()
	big = point.big
	big.detailHide()

func 野马_impact(point:Point):
	WebSocketManager.sendObj(true,"野马_impact",{"start":big.point.id,"end":point.id})
	operationManager.cancel()
